﻿namespace TakePhotoTogether.Communication.Protocols
{
    public class CloseAppData : PayloadData
    {
        private string _action;

        public string Action
        {
            get { return _action; }
        }

        public CloseAppData(string message)
        {
            _action = message;
        }

        public CloseAppData(byte[] message)
        {
            _action = Util.GetString(message);
        }

        public byte[] ToBytes()
        {
            return Util.GetBytes(_action);
        }
    }
}
